package com.ebt.m.msgnote.view;

import android.widget.ImageView;

import com.ebt.m.R;
import com.ebt.m.commons.mvp.MvpBaseActivity;
import com.ebt.m.msgnote.contract.IMsgCenterContract;
import com.ebt.m.msgnote.presenter.MsgCenterPresenter;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Description :
 *
 * @author allen
 * @date 2018/7/26  17:36
 * - generate by MvpAutoCodePlus plugin.
 */

public class MsgCenterActivity extends MvpBaseActivity<IMsgCenterContract.Presenter> implements IMsgCenterContract.View {

    @BindView(R.id.msgTypeListView)
    MsgCenterListView msgTypeListView;
    @BindView(R.id.iv_msg_top_back)
    ImageView ivMsgTopBack;

    @Override
    public void initArguments() {

    }

    @Override
    public void setEmptyView(boolean isEmpty) {

    }

    @Override
    protected IMsgCenterContract.Presenter createPresenter() {
        return new MsgCenterPresenter(this, this);
    }

    @Override
    protected int setContentResource() {
        return R.layout.msg_center;
    }

    @Override
    protected void onActivityCreate() {
    }

    @Override
    protected void onResume() {
        super.onResume();
        msgTypeListView.onRefresh();
    }

    @Override
    protected void onActivityDestroy() {

    }

    @OnClick(R.id.iv_msg_top_back)
    public void onViewClicked() {
        finish();
    }
}

